<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
 ?>

<?= Html::cssFile('./css/course/bootstrap.css')?>
<?= Html::cssFile('./css/course/common.css')?>
<?= Html::cssFile('./css/course/bootstrap-extends.css')?>
<?= Html::cssFile('./css/course/class-default.css')?>
<?= Html::cssFile('./css/course/web.css')?>
<?= Html::cssFile('./css/course/member.css')?>
<?= Html::cssFile('./css/course/font-awesome.min.css')?>


  <div id="content-container" class="container">





<div class="row row-12">
  <div class="col-md-12">
    <div class="panel panel-default  course-header">
      <div class="panel-body clearfix">
        <a href="http://localhost/eudsoho/web/app.php/course/2">
            <?php if($course['course_thumb']){?>
                <img class="picture" src="<?php echo 'http://files.bwphp.com/file/image/show/110/60?path='.$course['course_thumb']?>">
            <?php }else{?>
            <img class="picture" src="./css/course/coursePicture">
            <?php }?>
        </a>

        <h1 class="title"><a href="http://localhost/eudsoho/web/app.php/course/2"><?php echo $course['course_name']; ?></a>
                      <span class="label label-warning "><?php if ($course['status'] == 0) {
                        echo '未发布';
                      }elseif ($course['status'] == 1) {
                        echo "已发布";
                      }elseif ($course['status'] == 2) {
                        echo "已关闭";
                      } ?></span>
                  </h1>

        <div class="teachers">
                      教师：
             <a href="http://localhost/eudsoho/web/app.php/course/2/manage/base#modal" data-toggle="modal" data-url="/eudsoho/web/app.php/course/2/teacher/1"><?php echo $course['teacher']['teacher_name']  ?></a>
                              </div>

        <!-- <div class="toolbar hidden-xs hidden-lt-ie8">


            <div class="btn-group">
              <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">预览 <span class="caret"></span></button>
              <ul class="dropdown-menu pull-right">
                  <li><a href="http://localhost/eudsoho/web/app.php/course/2?previewAs=member" target="_blank">作为 已购买用户</a></li>
                  <li><a href="http://localhost/eudsoho/web/app.php/course/2?previewAs=guest" target="_blank">作为 未购买用户</a></li>
              </ul>
            </div>

                          <div class="btn-group">
                <button class="btn btn-success btn-sm course-publish-btn" data-url="/eudsoho/web/app.php/course/2/manage/publish">发布课程</button>
              </div>

                  </div> -->
      </div>
    </div>


  </div>
</div>

<div class="row">
  <div class="col-md-3">
	<div class="panel panel-default">
		<div class="panel-body">
			<div class="list-group-panel">
				<?php echo $this->render('_leftnav') ?>
			</div>
		</div>
  <div class="col-md-9">

<div class="panel panel-default panel-col">
  <div class="panel-heading">
    学员管理
          <a class="btn btn-info btn-sm pull-right mhs" href="#"><i class="glyphicon glyphicon-export"></i> 导出学员</a>
  </div>

  <div class="panel-body">
      <form class="form-inline well well-sm " action="" method="get" novalidate="">

        <div class="form-group">
          <input class="form-control " placeholder="请输入用户名" name="nickname" type="text">

          <button class="btn btn-primary">搜索</button>
        </div>
        <div class="clearfix"></div>


    </form>
    <table class="table table-striped" id="course-student-list">
      <thead>
        <tr>
          <th width="40%">学员</th>
          <th width="30%">学习进度</th>
          <th width="30%">操作</th>
        </tr>
      </thead>
      <tbody>
			<!-- <?php if($course){ ?> -->
<tr id="student-19-tr">
	<td class="media">
		<img src="/assets/img/default/avatar.png?6.6.2" style=" border-radius: 50%;height: 60px !important;width: 60px !important;">
			<a target="_blank" href="/user/19">王文秀</a>
			<div class="text-muted text-sm">加入时间：2015-12-01 09:41</div>
	</td>
	<td>
		<div class="progress" title="已学2%">
			<div class="progress-bar" style="width: 60%"></div>
		</div>
	</td>
	<td>
		<div class="btn-group">
			<button class="btn btn-default btn-sm" data-toggle="modal" data-target="#modal" data-url="/message/create/19">发私信</button>
			<button class="btn btn-default btn-sm" data-toggle="modal" data-target="#modal" data-url="/course/41/manage/students/19/show">查看资料</button>
			<a href="#" type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">管理
				<span class="caret"></span>
			</a>
			<ul class="dropdown-menu pull-right">
				<li>
					<a class="" href="" data-toggle="modal" data-target="#modal" data-url="/course/41/manage/student/19/remark">备注</a>
				</li>
				<li>
					<a class="follow-student-btn" href="javascript:;" data-url="/user/19/follow" >关注</a>
					<a class="btn-success unfollow-student-btn" href="javascript:;" data-url="/user/19/unfollow"  style="display:none;">已关注</a>
				</li>
				<li>
					<a class="" href="" data-toggle="modal" data-target="#modal" data-url="/course/41/set_expiryday/19">增加有效期</a>
				</li>
				<li>
					<a class="student-remove" href="javascript:;" data-url="/course/41/manage/student/19/remove" data-user="学员">移除</a>
				</li>
			</ul>
		</div>
	</td>
</tr>
			<!-- <?php
			}else{?>
				<tr class="empty"><td colspan="20">无学员记录</td></tr>
			<?php }?> -->
	   </tbody>
    </table>
  </div>

</div>


  </div>
</div>
      </div>